home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PFind.cpp < prev    next >
C/C++ Source or Header  |  1996-10-10  |  891b  |  37 lines

  1. /*
  2.  *--- PFind.cpp -----------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PFind.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PFind.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15.  
  16. PFind::PFind
  17.   (    const char * sFindWhat,
  18.     short cSearchRange,
  19.     PMBool  bWrapAround,
  20.     PMBool  bMatchCase = false,
  21.     PMBool  bWholeWord = false,
  22.     PMBool  bClearAttr = false)
  23. {
  24.     PRequestBuf request(strlen(sFindWhat) + 16);
  25.     
  26.     request << sFindWhat
  27.             << cSearchRange
  28.             << bWrapAround
  29.             << bMatchCase
  30.             << bWholeWord
  31.             << bClearAttr;
  32.     
  33.     PCommand command(pm_find, request);
  34. }
  35.  
  36. // end of PFind.cpp
  37.